package cn.com.api.entity;

import java.math.BigDecimal;

public class Goods_Sale_List {

	/** 排序 */
	private Long rank_id;
	/** 商品名称 */
	private String product_name;
	/** 店铺编码 */
	private String shop_no;
	/** 销售量-购买件数 */
	private Integer sold;
	/** 销售额 */
	private Double sumprice;
	/** 访问次数 */
	private Integer visitcount;
	/** 访问购买率 */
	private Double rate; 
	public Long getRank_id() {
		return rank_id;
	}
	public void setRank_id(Long rank_id) {
		this.rank_id = rank_id;
	}
	public String getProduct_name() {
		return product_name;
	}
	public void setProduct_name(String product_name) {
		this.product_name = product_name;
	}
	public String getShop_no() {
		return shop_no;
	}
	public void setShop_no(String shop_no) {
		this.shop_no = shop_no;
	}
	public Integer getSold() {
		return sold;
	}
	public void setSold(Integer sold) {
		this.sold = sold;
	}
	public Double getSumprice() {
		return sumprice;
	}
	public void setSumprice(Double sumprice) {
		this.sumprice = sumprice;
	}
	public Integer getVisitcount() {
		return visitcount;
	}
	public void setVisitcount(Integer visitcount) {
		this.visitcount = visitcount;
	}
	public Double getRate() {
		return rate;
	}
	public void setRate(Double rate) {
		BigDecimal b = new BigDecimal(rate);
		this.rate = b.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
	}
}
